#ifndef _TAIIC_OPENCV_H
#define _TAIIC_OPENCV_H

#include <stdio.h>
#include <stdlib.h>
#include "rk_debug.h"
#include "rk_defines.h"
#include "opencv2/opencv.hpp"
#include <sys/time.h>


int64_t getCurrentTimeUs();
void taiic_nv12_rgb(void *src, RK_U8 *dst, int sw , int sh);
void taiic_gray_crop_resize(RK_U8 *src,  RK_U8 *dst, int sw, int sh, int box_left, int box_top, int box_right, int box_bottom, int re_sw, int re_sh);
void taiic_gray_resize(RK_U8 *src,  RK_U8 *dst, int sw, int sh, int re_sw, int re_sh);


void taiic_y_rgb(RK_U8 *src, RK_U8 *dst, int sw, int sh);
void taiic_y_crop_resize(RK_U8 *src,  RK_U8 *dst, int sw, int sh, int box_left, int box_top, int box_right, int box_bottom, int re_sw, int re_sh);
void taiic_y_resize(RK_U8 *src,  RK_U8 *dst, int sw, int sh, int re_sw, int re_sh);


void taiic_y_resize_crop_resize(RK_U8 *src,  RK_U8 *dst, int sw, int sh, int ori_w, int ori_h, int box_left, int box_top, int box_right, int box_bottom, int re_sw, int re_sh);

void taiic_center_crop(RK_U8 *src, RK_U8 *dst, int sw, int sh, int re_sw, int re_sh);

#endif //_TAIIC_OPENCV_H